package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 交易表
 */
public class Deal implements Serializable {
    /**
     * 交易id
     */
    private Integer dealid;
    /**
     * 用户姓名
     */
    private Integer uname;
    /**
     * 商家id
     */
    private Integer sid;
    /**
     * 商品id
     */
    private Integer gid;
    /**
     * 收件信息
     */
    private String cinfoid;
    /** 交易开始时间 */
    private LocalDateTime ostartTime;
    /** 交易完成时间 */
    private LocalDateTime oendTime;
    /**
     * 数量
     */
    private int ocount;
    /**
     * 价格
     */
    private double oprice;

    public Deal() {
    }

    public Deal(Integer dealid, Integer uname, Integer sid, Integer gid, String cinfoid, LocalDateTime ostartTime, LocalDateTime oendTime, int ocount, double oprice) {
        this.dealid = dealid;
        this.uname = uname;
        this.sid = sid;
        this.gid = gid;
        this.cinfoid = cinfoid;
        this.ostartTime = ostartTime;
        this.oendTime = oendTime;
        this.ocount = ocount;
        this.oprice = oprice;
    }

    public Integer getDealid() {
        return dealid;
    }

    public void setDealid(Integer dealid) {
        this.dealid = dealid;
    }

    public Integer getUname() {
        return uname;
    }

    public void setUname(Integer uname) {
        this.uname = uname;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getCinfoid() {
        return cinfoid;
    }

    public void setCinfoid(String cinfoid) {
        this.cinfoid = cinfoid;
    }

    public LocalDateTime getOstartTime() {
        return ostartTime;
    }

    public void setOstartTime(LocalDateTime ostartTime) {
        this.ostartTime = ostartTime;
    }

    public LocalDateTime getOendTime() {
        return oendTime;
    }

    public void setOendTime(LocalDateTime oendTime) {
        this.oendTime = oendTime;
    }

    public int getOcount() {
        return ocount;
    }

    public void setOcount(int ocount) {
        this.ocount = ocount;
    }

    public double getOprice() {
        return oprice;
    }

    public void setOprice(double oprice) {
        this.oprice = oprice;
    }

    @Override
    public String toString() {
        return "Deal{" +
                "dealid=" + dealid +
                ", uname=" + uname +
                ", sid=" + sid +
                ", gid=" + gid +
                ", cinfoid='" + cinfoid + '\'' +
                ", ostartTime=" + ostartTime +
                ", oendTime=" + oendTime +
                ", ocount=" + ocount +
                ", oprice=" + oprice +
                '}';
    }
}
